package J_exercise;

import java.util.Scanner;

public class Q41_50 {

	public static void main(String[] args) {
		
		char letter='b';
		switch(letter)
		{
			case 'b':
			case 'B': System.out.println("B");
			break;
			default: System.out.println("달라");
			
		}
		int count=0,x=0,y=0,limit=10;
		
		boolean a=(count==0)&&(limit<20);
		boolean b=count==0&&limit<20;
		boolean c=(limit>20)&&(count<5);
		boolean d=!(count==12);
		boolean e=(count==1)&&(x<y);
		boolean f=(count<10)||(x<y);
		boolean g=!((count<10)||(x<y)&&(count>=0));

		boolean i=(limit<20) ||((limit/count)>7);
		
		
		count=1;
		boolean h=((limit/count)>7) ||(limit<20);
		boolean j=((limit/count)>7)&&(limit<0);
		boolean k=(limit<0)&&(limit/count)>7;
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
		System.out.println(e);
		System.out.println(f);
		System.out.println(g);
		System.out.println(h);
		System.out.println(i);
		System.out.println(j);
		System.out.println(k);
		
		System.out.println("숫자 3개 입력");
		Scanner num=new Scanner(System.in);
		int []array=new int[3];
		int []array2=new int [10];
		for(int z=0;z<3;z++)array[z]=num.nextInt();
		for(int l:array)System.out.println(l);
		
		
		System.out.println("거꾸로출력");
		for(int size=array.length-1;size>=0;size--)
		System.out.println(array[size]);
		
		

		for(int z=0;z<array2.length;z++)
		{array2[z]=num.nextInt();}
		for(int z=0;z<5;z++)
		{
			if(z<=5)
			{
			int s=array2.length-1;
			System.out.println(array2[z]+" "+array2[s-z]);
			
			}
		}
		
		
		
		
		
		
	}

}
